﻿@model IEnumerable<JinianNet.JNCms.Models.Template>
<!DOCTYPE html>
<html>
<head>
    <title>模板管理 - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
</head>
<body>
    <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="grid">
        <tr>
            <th align="left">&nbsp;&nbsp;&nbsp;&nbsp;模板下载</th>
        </tr>
        <tr>
            <td>
                @if (ViewBag.Error == null)
                {
                    <div class="templets">
                        <ul>
                            @foreach (var item in Model)
                            {
                                <li>
                                    <div>
                                        <img src="@ViewBag.BaseUrl@item.Key/skin.gif" width="200" height="150" alt="@item.Title" />
                                    </div>
                                    <div class="center">@item.Title</div>
                                    <div class="left">作　　者：@item.Author [<a href="@item.Url" target="_blank">访问</a>]</div>
                                    <div class="left">发布时间：@item.CreateTime.ToString("yyyy-MM-dd")</div>
                                    <div class="left">适应版本：@item.SystemVersion</div>
                                    <div class="center">
                                        <a href="#@item.ID">下载</a>
                                        <a href="#@item.ID">删除</a>
                                    </div>
                                </li>
                            }
                        </ul>
                    </div>
                }
                else
                {
                    <strong class="red"> 服务器请求失败: 返回信息 @ViewBag.Error.Message</strong>
                }
            </td>
        </tr>
        <tr>
            <td>@ViewData["WebPage"]</td>
        </tr>
    </table>
</body>
</html>
